<template>
  <div>
    <p>comp1</p>
    <button @click="act">act</button>
  </div>
</template>

<script>
import { bus } from './bus.js'
export default {
  methods: {
    act () {
      bus.$emit('id-selected', 1)
    }
  }
}
</script>
